package com.kehutong.charge.entity;

import com.kehutong.charge.util.enums.CommonEnum;
import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

/**
 * @program: kht
 * @description: ChargePayConfig
 * @author: joneron
 * @create: 2021/6/29
 **/
@Table(value="t_charge_pay_config", comment="支付设置配置表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargePayConfig extends DataEntity {

    private static final long serialVersionUID = -1353196547705992583L;

    protected ChargePayConfig(String id) {
        super(id);
    }

    // @Column(comment="支付设置名称")
    // private String payConfigName;

    @Column(comment="支付方式")
    private CommonEnum payMethod;

    @Column(comment="小区编号")
    private String communityNo;

    @Column(comment="商户模式")
    private Integer mchModel;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @Column(comment="AppId")
    private String appId;

    // @Column(comment="appSecret")
    // private String appSecret;

    @Column(comment="支付秘钥")
    private String payKey;

    @Column(comment="受理商ID，商户号")
    private String merchantPayId;

    // @Column(comment="支付手续费")
    // private String payFee;

    @Column(comment="支付渠道")
    private String payType;

    @Column(comment="支付秘钥文件ID")
    private String mchFileId;

    @Column(comment = "排序")
    private Integer sort;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "修改人")
    private String updateName;

    @Column(comment = "审核状态")
    private String auditStatus;

    @UnSave
    private String communityName;

    /*public String getPayConfigName() {
        return payConfigName;
    }

    public void setPayConfigName(String payConfigName) {
        this.payConfigName = payConfigName;
    }*/

    public String getCommunityNo() {
        return communityNo;
    }

    public void setCommunityNo(String communityNo) {
        this.communityNo = communityNo;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getMchModel() {
        return mchModel;
    }

    public void setMchModel(Integer mchModel) {
        this.mchModel = mchModel;
    }

    public String getMchFileId() {
        return mchFileId;
    }

    public void setMchFileId(String mchFileId) {
        this.mchFileId = mchFileId;
    }

    /*public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }*/

    public String getPayKey() {
        return payKey;
    }

    public void setPayKey(String payKey) {
        this.payKey = payKey;
    }

    public String getMerchantPayId() {
        return merchantPayId;
    }

    public void setMerchantPayId(String merchantPayId) {
        this.merchantPayId = merchantPayId;
    }

   /* public String getPayFee() {
        return payFee;
    }

    public void setPayFee(String payFee) {
        this.payFee = payFee;
    }*/

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public CommonEnum getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(CommonEnum payMethod) {
        this.payMethod = payMethod;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }
}
